using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" DeliveryOrderElse to change the interface name "IDeliveryOrderElseServices" in both code and config file together.
    [ServiceContract]
    public interface IDeliveryOrderElseServices
    {
        [OperationContract]
        List<DeliveryOrderElseDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                           string sortType = "ASC");

        [OperationContract]
        bool Save(DeliveryOrderElseDTO DeliveryOrderElse, out string err);

        [OperationContract]
        bool Delete(DeliveryOrderElseDTO DeliveryOrderElse);

        [OperationContract]
        List<DeliveryOrderElseDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                     out long recordCount);

        [OperationContract]
        List<DeliveryOrderElseDTO> GetAllDeliveryOrderElse();

        [OperationContract]
        DeliveryOrderElseDTO GetDeliveryOrderElse(string kodeDeliveryOrderElse);

        [OperationContract]
        List<DeliveryOrderElseDTO> GetDeliveryOrderElseList(string kodeDeliveryOrderElse);

        [OperationContract]
        bool DeleteDetail(DeliveryOrderElseDetailDTO DeliveryOrderElseDetail);

        [OperationContract]
        string GetLastDONo();

        [OperationContract]
        bool SendEmail(DeliveryOrderElseDTO DeliveryOrderElseDto, String DestinationFolder);

        [OperationContract]
        void Posting(IEnumerable<DeliveryOrderElseDTO> deliveryOrderElses);

        [OperationContract]
        void UnPosting(IEnumerable<DeliveryOrderElseDTO> deliveryOrderElseDtos);

        [OperationContract]
        IEnumerable<DeliveryOrderElseDTO> GetListByPeriode(DateTime tglstart, DateTime tglend);
    }
}